<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%  response.addDateHeader("Expires", 0);response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","no-cache");%>
<%
	com.infomanage.po.User user = (com.infomanage.po.User) request.getSession().getAttribute(com.infomanage.util.Consts.LOGINED_USER);
%>   
<html>
<head>
<title>矿山救护远程调度管理指挥系统</title>
	<link href="<%=request.getContextPath() %>/css/style.css" rel="stylesheet" type="text/css">
	<link href="<%=request.getContextPath() %>/css/table.css" rel="stylesheet" type="text/css">
	<link href="<%=request.getContextPath() %>/css/calendar.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="<%=request.getContextPath() %>/js/calendar.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath() %>/js/common.js"></script>
	<script type="text/javascript">
		// 查询
	    function search() {
	    	searchForm.submit();
		}

		// 新增
		function addItem() {
			var url = "maneuver_edit.jsp";
			var width = '650px';
			var height ='500px';
			var arg = "dialogHeight:" + height + ";dialogWidth:" + width + ";status:no;location:no;";
			var returnValue = window.showModalDialog(url, "", arg);
			if(returnValue){
				window.location.reload();
			}
		}
				  function print() {
				   var currPageNum =  document.frames("dataFrame").document.getElementById("pageForm").currPageNum.value;
			var place = document.getElementById("place").value;
	    	var commanderId = document.getElementById("commanderId").value;


		    window.location.href="maneuver_print.jsp?place="+place+"&commanderId="+commanderId+"&currPageNum="+currPageNum;
	    
		}
	</script>
<body rightmargin="0" bottommargin="0" leftmargin="0" topmargin="0" onclick="clickBody();" style="background: #ffffff;">
<form name="searchForm" id="searchForm" action="maneuver_data.jsp" target="dataFrame" method="get">
<table width="100%" height="100%"  border="0" align="center" cellpadding="0" cellspacing="0" style="table-layout: fixed;">
	<!-- 位置导航栏 -->
	<tr height="25px">
		<td width="100%" align="center" valign="top">
			 <table width="98%" border="0" cellpadding="0" cellspacing="0" class="tabtitle">
              <tr>
                <td width="4%" valign="top"><img src="<%=request.getContextPath() %>/img/pic_dot1.gif" width="37" height="22"></td>
                <td width="96%" valign="middle">当前位置：<a class="n">质量标准化</a> &gt;&gt; <a  class="n">各种记录管理</a> &gt;&gt; <a  class="n">质量标准化管理记录</a>&gt;&gt; <a  class="n">演习训练记录</a></td>
              </tr>
            </table>
		</td>
	</tr>
   
   <!-- 查询工具条 -->
   <tr height="29px">
	   <td valign="top">
	   		<table width="98%" height="29" cellpadding="0" cellspacing="0" align="center" border="0">
	   			<tr height="100%">

		   			<!--td  class="td_title" width="150" align="left">
		   				<table cellpadding="0" cellspacing="0" border="0">
		   					<tr>
		   						<td align="center" width="70px">操练时间</td>
		   						<td>
		   							<input name="excuteTimestamp" type="text" style="width: 70px;cursor: hand;" id="time" onClick="return showCalendar(this.id, 'y-mm-dd');" readonly="readonly"><img 
									src="../../img/tip_calender.gif" style="cursor: hand;" width="16" height="16" onClick="return showCalendar('time', 'y-mm-dd');">
		   						</td>
		   					</tr>
		   				</table>
		   			</td-->
		   			<td class="td_title" width="232" align="left">
		   				<table cellpadding="0" cellspacing="0" border="0">
		   					<tr>
		   						<td align="center" width="60px">操练地点</td>
		   						<td>
									<input name="place" value="" type="text" style="width:170px">
		   						</td>
		   					</tr>
		   				</table>
		   			</td>
		   			<td class="td_title" width="240" align="left">
		   				<table cellpadding="0" cellspacing="0" border="0">
		   					<tr>
		   						<td align="center" width="70px">指挥员</td>
		   						<td width="167px">
		   							<span class="treeSpan" onclick="showTree(this, '<%=request.getContextPath() %>/infomanage/common/personTree.jsp');" treeSelect="true">
										<input nodeId="" id="deptTreeInput" value="" 
											style="width: 150px;" readonly="readonly" 
											treeSelect="true"><input name="commanderId" value="" type="hidden">
									</span>
		   						</td>
		   					</tr>
		   				</table>
		   			</td>
		   			<td class="td_title" style="border-right: 1px #a3c6e2 solid;border-left: none;padding-left:20px;">
							<input name="Button12" type="button" class="button_cx" value="" title="查询" onclick="search();">
					</td>
	   			</tr>
	   		</table>
	   </td>
   </tr>
   
   <!-- 空格 -->
   <tr height="3px">
		<td>
			&nbsp;
		</td>
   </tr>
   
    <!-- 工具按钮 -->
    <tr height="30px">
      <td width="100%" align="center" valign="top" bgcolor="#FFFFFF" >
        <table width="98%" border="0" cellpadding="0" cellspacing="0" class="td_button">
          <tr>
            <%
				if(user != null && user.getRoleId() != com.infomanage.enums.RoleType.GENERALUSER.value()){
			%>
            <td width="55px"><a href="#" onclick="javascript:addItem();"><img src="<%=request.getContextPath() %>/img/button_xz.gif" width="55" height="24" border="0"></a></td>
            <td width="55px"><a href="#" onclick="javascript:delBatch();"><img src="<%=request.getContextPath() %>/img/button_sc.gif" width="55" height="24" border="0"></a></td>
            <%
				}
			%>
            <td>&nbsp;</td>
          </tr>
        </table>
      </td>
   </tr>
   
   <!-- 空格 -->
   <tr height="5px">
		<td>
			&nbsp;
		</td>
   </tr>
   
   <!-- 数据列表 -->
   <tr>
	<td align="center">
		<iframe src="maneuver_data.jsp"  name="dataFrame" frameborder="0" width="98%" height="100%" scrolling="no"></iframe>
	</td>
   </tr>
</table>
<!-- 隐藏树 -->
<iframe src="#" frameborder="0" id="treeFrame" name="frame" style="display: none;position: absolute;"></iframe>
</form>
<form action="maneuver_action.jsp" name="delForm" target="actionFrame">
	<input type="hidden" value="delBatch" name="actionType">
	<input type="hidden" value="" name="batchIds">
</form>
</body>
</html>
